﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace PulseLibrary
{
    public static class VectorExtensions
    {
        public static Vector3 ToVector3(this Vector2 vector2)
        {
            return new Vector3(vector2, 0);
        }

        public static Vector3 ToVector3(this Point point)
        {
            return new Vector3(point.X, point.Y, 0);
        }

        public static Vector2 ToVector2(this Vector3 vector3)
        {
            return new Vector2(vector3.X, vector3.Y);
        }

        public static Vector2 ToVector2(this Point point)
        {
            return new Vector2(point.X, point.Y);
        }

        public static Point ToPoint(this Vector2 vector2)
        {
            int x = (int)vector2.X;
            int y = (int)vector2.Y;

            return new Point(x, y);
        }

        public static Point ToPoint(this Vector3 vector3)
        {
            int x = (int)vector3.X;
            int y = (int)vector3.Y;

            return new Point(x, y);
        }
    }
}
